<!--
 * @Author: 137 '1432417996@qq.com'
 * @Date: 2025-03-18 22:10:50
 * @LastEditors: 137 '1432417996@qq.com'
 * @LastEditTime: 2025-04-29 02:20:01
 * @FilePath: \starter-3\app.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
    <div class="body-content">
      <HeadLine v-if="route.path !== '/callback'"></HeadLine>
      <NuxtPage />
      <homeBottom v-if="route.path !== '/callback'"></homeBottom>
    </div>

</template>
<script setup lang="ts">
import { onMounted } from 'vue'
import { useUserStore } from '~/stores/user'
import { useRoute } from 'vue-router'

const userStore = useUserStore()
const route = useRoute()

onMounted(() => {
  // 初始化用户信息，从localStorage加载
  // 仅在客户端执行
  if (process.client) {
    userStore.initUser()
  }
})
</script>
